package com.gxa.autoparts.core.exception;


import com.gxa.autoparts.core.common.ExceptionCode;

public class BusinessException extends Exception{

    private ExceptionCode exceptionCode;

    public ExceptionCode getExceptionCode(){
        return exceptionCode;
    }

    public BusinessException(ExceptionCode exceptionCode){
        super(exceptionCode.getMessage());
        this.exceptionCode = exceptionCode;
    }
}
